#include<stdio.h>
#include <math.h>
int main()
{
	double x,y,f;
	scanf("%lf %lf",&x,&y);
	f=sqrt(x*x+y*y*y);
	printf("f=%.3f",f);	
	return 0;

	
}
